﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title - Administration</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width" />
    
    @Styles.Render("~/Content/css")
    @Styles.Render("~/Content/themes/metro/css")
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/Scripts/tinymce/tinymce.min.js")
    
    @Scripts.Render("~/bundles/unobtructive")
    @Scripts.Render("~/bundles/jeasyui")
    @Scripts.Render("~/bundles/modernizr")
    @RenderSection("scripts", required: false)
    @*<script type="text/javascript" src="@Scripts.Url("~/Scripts/Administration/menu.js")"></script>*@
</head>
<body>
        <div class="easyui-layout" data-options="fit: true" id="layout" style="width: 100%; height: 100%">
            <div data-options="region:'north'" style="height: 42px;">
                <div class="navbar-collapse collapse">
                    <ul class="nav navbar-nav">
                        <li>@Html.ActionLink("Workspace", "Index", new { Area = "", Controller = "Home" })</li>
                        <li>@Html.ActionLink("Administration", "Index", new {Area="Admin", Controller="Main" })</li>
                    </ul>
                    @Html.Partial("_LoginPartial")
                </div>
            </div>
            @if (IsSectionDefined("south"))
        {
                <div data-options="region:'south',split:true,iconCls:'icon-ok'" title=" " id="south" style="height: 250px;">
                    @RenderSection("south")
                </div>
        }
        else if (IsSectionDefined("south_center") || IsSectionDefined("south_west") || IsSectionDefined("south_east"))
        {
                <div data-options="region:'south',split:true,iconCls:'icon-ok'" title=" " id="south-wrap" style="height: 250px;">
                    <div class="easyui-layout" data-options="fit: true" style="width: 100%; height: 215px;">
                        @if (IsSectionDefined("south_west"))
                    {
                            <div data-options="region:'west'" title="Problem/Question" style="width: 400px; padding: 10px;">
                                @RenderSection("south_west")
                            </div>
                    }
                        @if (IsSectionDefined("south_center"))
                    {
                            <div data-options="region:'center'" title="Conclusion" style="padding: 10px;">
                                @RenderSection("south_center")
                            </div>
                    }
                        @if (IsSectionDefined("south_east"))
                    {
                            <div data-options="region:'east'" title="Conclusion" style="padding: 10px;">
                                @RenderSection("south_east")
                            </div>
                    }
                    </div>
                </div>
        }
        else
        {
                <div data-options="region:'south'" style="height: 22px; padding-left: 5px;">

                            <span>&copy; @DateTime.Now.Year - <a href="http://econsulting.vn">eConsulting Software Services</a></span>
                </div>
        }
            @if (IsSectionDefined("east"))
        {
                <div data-options="region:'east',split:true,iconCls:'icon-search'" id="east" title=" " style="width: 400px;">
                    @RenderSection("east");
                </div>
        }
            @if (IsSectionDefined("west"))
        {
                <div data-options="region:'west',split:true" id="west" title="Administration" style="width: 200px;">
                    @RenderSection("west")
                </div>
        }
            <div data-options="region:'center',iconCls:'icon-help'">
                @if (IsSectionDefined("center_east") || IsSectionDefined("center_west") || IsSectionDefined("center_south") || IsSectionDefined("center_north"))
            {
                    <div id="body" class="easyui-layout" data-options="fit: true" style="width: 100%; height: 100%;">
                        @*@RenderSection("featured", required: false)*@
                        @if (IsSectionDefined("center_east"))
                    {
                            <div data-options="region:'east',split:true,iconCls:'icon-search'" title="Working Paper" id="center_east" style="width: 300px; padding: 10px;" id="center-east">
                                @RenderSection("center_east")
                            </div>
                    }
                        @if (IsSectionDefined("center_west"))
{
    <div data-options="region:'west',split:true,iconCls:'icon-search'" title="Working Paper" id="center_west" style="width: 700px;">
        @RenderSection("center_west")
    </div>
}
@if (IsSectionDefined("center_north"))
{
    <div data-options="region:'north'"  id="center_north" style="height: 36px;">
        @RenderSection("center_north")
    </div>
}
                    @if (IsSectionDefined("center_south"))
{
    <div data-options="region:'south',split:true,iconCls:'icon-search'" title="Working Paper" id="center_south" style="height: 300px;">
        @RenderSection("center_south")
    </div>
}
                        <div data-options="region:'center', title: 'Audit Programme'" id="main_center" style="padding: 10px;">
                            @RenderBody()
                        </div>
                    </div>
            }
                else
                {
                    <div data-options="region:'center', title: 'Audit Programme'" id="main_center" style="padding: 10px;">
                        @RenderBody()
                    </div>
                }

            </div>
        </div>

</body>
</html>
